@extends('layout.admin')

@section('title','回复状态修改')

@section('content')
<!-- 放一个表单 -->
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>回复状态修改</span>
    </div>
    <div class="mws-panel-body no-padding">
          

    	<form class="mws-form" action="/reply/update" method="post" enctype="multipart/form-data">
        	@if(count($errors) > 0)
            <div class="mws-form-message warning">
                @foreach($errors->all() as $error)
                    {{$error}}<br>
                @endforeach
            </div>
            @endif 

    		<div class="mws-form-inline">
    			<div class="mws-form-row">
    				<label class="mws-form-label">内容:</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" name="contents" value="{{$reply->contents}}" disabled>
    				</div>
    			</div>

                <div class="mws-form-row">
                    <label class="mws-form-label">回复时间:</label>
                    <div class="mws-form-item">

                        <input class="small" type="text" name="time" value="{{$reply->rtime}}" disabled>
                    </div>
                </div>
    
                <div class="mws-form-row">
                    <label class="mws-form-label">状态</label>
                    <div class="mws-form-item clearfix">
                        <ul class="mws-form-list inline">
                            <li><input type="radio" name="statu" value="1" @if($reply->statu == 1) checked @endif> <label>显示</label></li>
                            <li><input type="radio" name="statu" value="0" @if($reply->statu == 0) checked @endif> <label>隐藏</label></li>
                        </ul>
                    </div>
                </div>
    		</div>
    		<div class="mws-button-row">
    			<!-- 添加隐藏域 -->
    			{{csrf_field()}}
                <input type="hidden" name="rid" value="{{$reply->rid}}">
    			<input value="修改" class="btn btn-danger" type="submit">
    			<input value="重置" class="btn " type="reset">
    		</div>
    	</form>
    </div>    	
</div>
@endsection